package com.ruoyi.develop.goodsReceipt.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 签收单对象 goods_receipt
 *
 * @author qh
 * @date 2023-01-05
 */
public class GoodsReceipt extends BaseEntity {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private String id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String name;

    /** 销售单号 */
    @Excel(name = "销售单号")
    private String code;

    /** 客户id */
    @Excel(name = "客户id")
    private String customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String customerAddr;

    /** 客户电话 */
    @Excel(name = "客户电话")
    private String customerTel;

    /** 销售记录 */
    @Excel(name = "销售记录")
    private String saleId;

    /** 送货地址 */
    @Excel(name = "送货地址")
    private String address;

    /** 销售日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date saleDate;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal totalPrice;

    /** 金额大写 */
    @Excel(name = "金额大写")
    private String totalPriceCn;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }
    public void setCode(String code)
            {
            this.code = code;
            }

    public String getCode()
            {
            return code;
            }
    public void setCustomerId(String customerId)
            {
            this.customerId = customerId;
            }

    public String getCustomerId()
            {
            return customerId;
            }
    public void setCustomerName(String customerName)
            {
            this.customerName = customerName;
            }

    public String getCustomerName()
            {
            return customerName;
            }
    public void setCustomerAddr(String customerAddr)
            {
            this.customerAddr = customerAddr;
            }

    public String getCustomerAddr()
            {
            return customerAddr;
            }
    public void setCustomerTel(String customerTel)
            {
            this.customerTel = customerTel;
            }

    public String getCustomerTel()
            {
            return customerTel;
            }
    public void setSaleId(String saleId)
            {
            this.saleId = saleId;
            }

    public String getSaleId()
            {
            return saleId;
            }
    public void setAddress(String address)
            {
            this.address = address;
            }

    public String getAddress()
            {
            return address;
            }
    public void setSaleDate(Date saleDate)
            {
            this.saleDate = saleDate;
            }

    public Date getSaleDate()
            {
            return saleDate;
            }
    public void setTotalPrice(BigDecimal totalPrice)
            {
            this.totalPrice = totalPrice;
            }

    public BigDecimal getTotalPrice()
            {
            return totalPrice;
            }
    public void setTotalPriceCn(String totalPriceCn)
            {
            this.totalPriceCn = totalPriceCn;
            }

    public String getTotalPriceCn()
            {
            return totalPriceCn;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("name",getName())
            .append("code",getCode())
            .append("customerId",getCustomerId())
            .append("customerName",getCustomerName())
            .append("customerAddr",getCustomerAddr())
            .append("customerTel",getCustomerTel())
            .append("saleId",getSaleId())
            .append("address",getAddress())
            .append("saleDate",getSaleDate())
            .append("totalPrice",getTotalPrice())
            .append("totalPriceCn",getTotalPriceCn())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
        .toString();
    }
}
